import request from '@/utils/request'

// 查询专家附件列表
export function listExpertFile(query) {
  return request({
    url: '/basic/expertFile/list',
    method: 'get',
    params: query
  })
}

// 查询专家附件详细
export function getExpertFile(fileId) {
  return request({
    url: '/basic/expertFile/' + fileId,
    method: 'get'
  })
}

// 新增专家附件
export function addExpertFile(data) {
  return request({
    url: '/basic/expertFile',
    method: 'post',
    data: data
  })
}

// 修改专家附件
export function updateExpertFile(data) {
  return request({
    url: '/basic/expertFile',
    method: 'put',
    data: data
  })
}



//通过文件名删除
export function deleteBsExpertFiles(name) {
  return request({
    url: '/basic/expertFile/deleteBsExpertFiles/' + name,
    method: 'get'
  })
}
